package com.wing.qualityTesting.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.wing.qualityTesting.model.entity.QualityTestingRecordValue;
import com.wing.qualityTesting.model.request.QualityTestingRecordValueForm;
import com.wing.qualityTesting.model.response.QualityDetailValueInfoVo;
import com.wing.qualityTesting.model.response.QualityTestingRecordValueVO;
import com.wing.qualityTesting.model.response.WorkOrderQualityTestingTaskNeedVo;

import java.util.List;
import java.util.Map;

/**
 * 质检参数结果表-Service
 *
 * @author
 */
public interface QualityTestingRecordValueService extends IService<QualityTestingRecordValue> {

    /**
     * 添加
     *
     * @param qualityTestingRecordValueForm
     * @return
     */
    int add(QualityTestingRecordValueForm qualityTestingRecordValueForm);

    /**
     * 列表-app
     *
     * @param params
     *
     * @return
     */
    List<QualityTestingRecordValueVO> list4app(Map<String, Object> params);

    /**
     * 分页list-app
     *
     * @param page
     * @param params
     *
     * @return
     */
    Page<QualityTestingRecordValueVO> pageList4app(Page page, Map<String, Object> params);

    /**
     * 详情-app
     *
     * @param id
     *
     * @return
     */
    QualityTestingRecordValueVO get4appById(Long id);

    /**
     * 查询取值记录
     * @param recordDetailId
     * @return
     */
    List<QualityDetailValueInfoVo> listRecordValues(Long recordDetailId);

    /**
     * 查询需要的信息
     * @param qualityTestingTaskId
     * @return
     */
    WorkOrderQualityTestingTaskNeedVo getNeedInfoBy(Long qualityTestingTaskId);

    /**
     * 查询未质检的个数
     * @param id
     * @return
     */
    Integer getNoQualityCount(Long id);
}
